/*
 * Copyright (c) 2018/12/9 . All Rights Reserved.
 */
package com.cgmnx.admin.service;

import com.cgmnx.admin.dao.condition.RankNumCondition;
import com.cgmnx.admin.dao.entity.RankNumAndNoteEntity;
import com.cgmnx.admin.dao.entity.RankNumEntity;
import com.cgmnx.admin.dao.mapper.RankNumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: z Date: 2018/12/9 Time: 下午4:33
 * @version: 1.0.0
 */
@Service
public class RankNumServiceImpl implements RankNumService {
    @Autowired
    private RankNumMapper rankNumMapper;

    @Override
    public void save(RankNumEntity entity) {
        rankNumMapper.save(entity);
    }

    @Override
    public List<RankNumAndNoteEntity> queryPage(RankNumCondition condition) {
        return rankNumMapper.queryPage(condition);
    }

    @Override
    public int count(RankNumCondition condition) {
        return rankNumMapper.count(condition);
    }

    @Override
    public void update(RankNumEntity entity) {
        rankNumMapper.update(entity);
    }

    @Override
    public RankNumAndNoteEntity queryById(Integer id) {
        return rankNumMapper.queryById(id);
    }

    @Override
    public RankNumEntity getQueryById(Integer id) {
        return rankNumMapper.getQueryById(id);
    }
}
